<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>分享红包</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script src="__INDEX__/js/mui.min.js"></script>
	    <link href="__INDEX__/css/mui.min.css" rel="stylesheet"/>
		<link rel="stylesheet" href="__INDEX__/store/css/style.css" />
		<link rel="stylesheet" href="__INDEX__/store/css/newsj.css" />
	</head>
	<style>
		.fxhb_ewm #qrcode{ 
			width: 8.5rem;
			height: 8.5rem;
			left: 32%;
			border-radius: 0;
		}
		.hongb_tanc {
		    position: fixed;
		    top: 42px;
		    bottom: 0;
		    left: 0;
		    right: 0;
		}
	</style>
	<body style="background: #E33C34;">
		<header class="mui-bar mui-bar-nav fxhb_nav">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">分享红包</h1>
		</header>
		<div class="mui-content" style="background: #E33C34;">
			<div class="fenxhb_top">
				<div class="fxhb_img">
					{if $agent_info['logo'] == null}
					<img src="__INDEX__/store/images/member.jpg">
					{else /}
	    		    <img id="agent_logo" src="{$agent_info['logo']}" style="width: 3.5rem;height: 3.5rem;">
	    		    {/if}
				</div>
				<div class="fxhb_nam">{$agent_info.agent_name}</div>
				<div class="tip">发了一个鼓励金红包</div>
			</div>
			 
			<div class="fxhb_ewm">
				<div id="qrcode">
			    	<div class="gzgzh"><img src="{$code_url}" style="width: 9rem;height: 9rem;margin-left: -4px;margin-top: -4px;"></div> 
			    </div>
			</div>
			 
			<div class="fxhb_bottom">
				<button type="button" class="fxhb_btn" onclick="$('.hongb_tanc').show();">转发到好友或群聊</button>
				<button type="button" class="fxhb_btn"><a href="{:url('store/agent/hongb02',['m'=>$id])}">生成分享码</a></button>	
			</div>
			<div class="hongb_tanc" style="display: none;"><img onclick="$( '.hongb_tanc').hide(); " src="__INDEX__/images/hongb_tanc.png "></div>		
		</div>
	</body>
</html>
<script src="__PUBLIC__/static/js/jquery.min.js "></script>
<link rel="stylesheet " href="__PUBLIC__/static/layui/css/layui.css ">
<script src="__PUBLIC__/static/layui/layui.all.js "></script>
<script src="__PUBLIC__/static/js/help.js "></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js "></script>
<script>
	
	var uid = "{$Think.session.info_user.id}";
	var gurl = "{$url}";
	var _share_img = "images/fx.png";
	var desc = "{$hb['memo']}";
	if(desc == " ") {
		desc = "鼓励金红包 ";
	}
	var news = {
		"title": "鼓励金",
		"desc": desc,
		"imgUrl": "https://"+document.domain+"__PUBLIC__/static/index/images/share.jpg",
		"link": gurl
	};
	share_set(news);
</script>